package a.f.l.a;

import a.f.d.a.kc;

import java.util.Arrays;

class xb
  extends sb
{
  private int f;
  private boolean g;
  private kc h;
  
  protected void c()
  {
    super.c();
    this.h = null;
  }
  
  protected void a(qb paramqb)
  {
    super.a(paramqb);
    this.h = kc.d(paramqb.a());
  }
  
  protected void b(rb paramrb)
  {
    boolean bool = sb.e;
    super.b(paramrb);
    this.f = b().e().f().n();
    if ((bool) || (this.h != null)) {
      if (bool) {}
    }
    this.g = (this.f > 0);
  }
  
  double[] a(h paramh, mb parammb, jb[] paramArrayOfjb, m[] paramArrayOfm, double[] paramArrayOfDouble)
  {
    boolean bool = sb.e;
    double d = 0.0D;
    if (!bool)
    {
      if ((this.g) && (paramh.d() != null))
      {
        if (bool) {
          break label59;
        }
        if (a(paramh, parammb)) {
          d = this.f;
        }
      }
      b("punish reentering partition grid cells", d, false);
    }
    label59:
    double[] arrayOfDouble = new double[paramArrayOfjb.length];
    if (d > 0.0D) {
      Arrays.fill(arrayOfDouble, d);
    }
    return arrayOfDouble;
  }
  
  private boolean a(h paramh, mb parammb)
  {
    boolean bool = sb.e;
    mb localmb1 = b().a(0);
    int i = a(localmb1);
    int j = b(localmb1);
    mb localmb2 = b().b(0);
    int k = a(localmb2);
    int m = b(localmb2);
    mb localmb3 = paramh.a();
    if (!bool) {
      if (i < k)
      {
        if (bool) {
          break label373;
        }
        if (a(parammb) < a(localmb3)) {
          break label372;
        }
      }
    }
    if (!bool) {
      if (i > k)
      {
        if (bool) {
          break label373;
        }
        if (a(parammb) > a(localmb3)) {
          break label372;
        }
      }
    }
    if (!bool) {
      if (i == k)
      {
        if (bool) {
          break label173;
        }
        if (a(localmb3) > k)
        {
          if (bool) {
            break label373;
          }
          if (a(localmb3) > a(parammb)) {
            break label372;
          }
        }
      }
    }
    label173:
    if (!bool) {
      if (i == k)
      {
        if (bool) {
          break label220;
        }
        if (a(localmb3) < k)
        {
          if (bool) {
            break label373;
          }
          if (a(localmb3) < a(parammb)) {
            break label372;
          }
        }
      }
    }
    label220:
    if (!bool) {
      if (j < m)
      {
        if (bool) {
          break label373;
        }
        if (b(parammb) < b(localmb3)) {
          break label372;
        }
      }
    }
    if (!bool) {
      if (j > m)
      {
        if (bool) {
          break label373;
        }
        if (b(parammb) > b(localmb3)) {
          break label372;
        }
      }
    }
    if (!bool) {
      if (j == m)
      {
        if (bool) {
          break label329;
        }
        if (b(localmb3) > m)
        {
          if (bool) {
            break label373;
          }
          if (b(localmb3) > b(parammb)) {
            break label372;
          }
        }
      }
    }
    label329:
    if ((bool) || (j == m)) {
      if (!bool)
      {
        if (b(localmb3) >= m) {
          break label376;
        }
        if (bool) {
          break label373;
        }
      }
    }
    label372:
    label373:
    label376:
    return b(localmb3) < b(parammb);
  }
  
  private int a(mb parammb)
  {
    Integer localInteger = (Integer)parammb.a(nb.f);
    return (sb.e) || (localInteger != null) ? localInteger.intValue() : -1;
  }
  
  private int b(mb parammb)
  {
    Integer localInteger = (Integer)parammb.a(nb.g);
    return (sb.e) || (localInteger != null) ? localInteger.intValue() : -1;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.l.a.xb

 * JD-Core Version:    0.7.0.1

 */